package com.open.common.exception;

import org.springframework.util.ObjectUtils;

public class StaleObjectStateRuntimeException extends BaseException {

	private static final long serialVersionUID = 1L;

	public StaleObjectStateRuntimeException(String msg) {
		super(msg);
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		} else if (!(other instanceof StaleObjectStateRuntimeException)) {
			return false;
		} else {
			StaleObjectStateRuntimeException otherBe = (StaleObjectStateRuntimeException) other;
			return this.getMessage().equals(otherBe.getMessage()) && ObjectUtils.nullSafeEquals(this.getCause(), otherBe.getCause());
		}
	}

	public int hashCode() {
		return this.getMessage().hashCode();
	}
}
